<div class="media user-media">
    <div class="user-media-toggleHover">
        <span class="fa fa-user"></span> 
    </div>
</div>
<!-- #menu -->
<ul id="menu" class="bg-blue dker">
    <li class="nav-header">Menu</li>
    <li class="nav-divider"></li>
    <li class="">
        <a href="{{URL::to('/')}}">
            <i class="fa fa-dashboard"></i><span class="link-title">&nbsp;Dashboard</span> 
        </a> 
    </li>
    @if(!Auth::check())
    Auth::logout();
    @elseif(Auth::user()->role == 'admin')
    <li class="">
        <a href="{{URL::to('new_reservation')}}">
            <i class="fa fa-book"></i><span class="link-title"> {{Lang::get('rentals.reservation')}}</span> 
        </a> 
    </li>
    <li class="">
        <a href="{{URL::to('new_rental')}}">
            <i class="fa fa-sign-out"></i><span class="link-title"> {{Lang::get('rentals.check_out')}}</span> 
        </a> 
    </li>
    <li class="">
        <a href="{{URL::to('check_in_search')}}">
            <i class="fa fa-sign-in"></i><span class="link-title"> {{Lang::get('rentals.check_in')}}</span> 
        </a> 
    </li> 
    <li class="">
        <a href="javascript:;">
            <i class="glyphicon glyphicon-time"></i>
            <span class="link-title">
                {{Lang::get('messages.history')}}
            </span> 
            <span class="fa arrow"></span> 
        </a> 
        <ul>
            <li class="">
                {{ Helpers\Helper::fa_link_to_action('glyphicon glyphicon-edit','CarController@history',Lang::get('messages.update_history'),null,array(
                            'class'=>'link-title'))
                }}
            </li>   
            <li class="">
                {{ Helpers\Helper::fa_link_to_action('glyphicon glyphicon-plus','CarController@insert_history',Lang::get('messages.insert_history'),null,array(
                            'class'=>'link-title'))
                }}
            </li>  
            <li class="">
                {{ Helpers\Helper::fa_link_to_action('glyphicon glyphicon-trash','CarController@delete_history',Lang::get('messages.delete_history'),null,array(
                            'class'=>'link-title'))
                }}
            </li> 
        </ul>
    </li> 
    <li class="">

        <a href="{{URL::to('online_logs')}}">
            <i class="glyphicon glyphicon-book"></i> <span class="link-title">{{Lang::get('messages.online_logs')}}</span> 
        </a> 

    </li> 
    @endif
    <li class="">
        <a href="#">
            <i class="fa fa-filter"></i>
            <span class="link-title">
                {{Lang::get('messages.filter_vehicles')}}
            </span> 
            <span class="fa arrow"></span> 
        </a> 
        <ul>
            <li class="">
                {{ Helpers\Helper::fa_link_to_action('fa fa-check','CarController@success_filter',Lang::get('messages.success_filter'),null,array(
                            'class'=>'link-title'))
                }}
            </li>
            <li class="">
                {{ Helpers\Helper::fa_link_to_action('fa fa-warning','CarController@warning_filter',Lang::get('messages.warning_filter'),null,array(
                            'class'=>'link-title'))
                }}
            </li> 
            <li class="">
                {{ Helpers\Helper::fa_link_to_action('fa fa-times-circle','CarController@danger_filter',Lang::get('messages.danger_filter'),null,array(
                            'class'=>'link-title'))
                }}
            </li>
        </ul>
    </li>
    <li>
        <a href="#">
            <i class="gylphicon fa fa-list"></i>
            <span class="link-title">
                {{Lang::get('messages.vehicles')}}
            </span> 
            <span class="fa arrow"></span> 
        </a> 
        <ul>
            <li> {{ Helpers\Helper::fa_link_to_action('fa fa-list','CarController@index',Lang::get('messages.all_vehicles'),null,array(
                            'class'=>'link-title'))
                }}
            </li>
            <li class="">
                {{ Helpers\Helper::fa_link_to_action('fa fa-plus-circle','CarController@create',Lang::get('messages.add_btn'),null,array(
                            'class'=>'link-title'))
                }}
            </li>
        </ul>
    </li>
</ul>